package main

import "fmt"

type Person struct {
	name string
	age  int
}

func (p *Person) PrintInfo() {
	fmt.Println(*p)
}
func main() {
	per := Person{"张三", 133}
	//per.PrintInfo()
	//f:=per.PrintInfo
	//fmt.Println(f)
	//f()
	f := (*Person).PrintInfo
	f(&per)
}
